package com.priserve.retirement.entities;

// Generated Apr 27, 2013 9:50:19 PM by Hibernate Tools 4.0.0

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Retirementgoalassumptions generated by hbm2java
 */
@Entity
@Table(name = "retirementgoalassumptions", catalog = "priserve")
public class Retirementgoalassumptions implements java.io.Serializable {

	private Long retirementGoalAssumptionsId;
	private Risktolerance risktolerance;
	private String goalPrioirty;
	private String retirementCity;
	private String retirementState;

	public Retirementgoalassumptions() {
	}

	public Retirementgoalassumptions(Risktolerance risktolerance,
			String goalPrioirty, String retirementCity, String retirementState) {
		this.risktolerance = risktolerance;
		this.goalPrioirty = goalPrioirty;
		this.retirementCity = retirementCity;
		this.retirementState = retirementState;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "retirementGoalAssumptionsId", unique = true, nullable = false)
	public Long getRetirementGoalAssumptionsId() {
		return this.retirementGoalAssumptionsId;
	}

	public void setRetirementGoalAssumptionsId(Long retirementGoalAssumptionsId) {
		this.retirementGoalAssumptionsId = retirementGoalAssumptionsId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "riskToleranceId")
	public Risktolerance getRisktolerance() {
		return this.risktolerance;
	}

	public void setRisktolerance(Risktolerance risktolerance) {
		this.risktolerance = risktolerance;
	}

	@Column(name = "goalPrioirty")
	public String getGoalPrioirty() {
		return this.goalPrioirty;
	}

	public void setGoalPrioirty(String goalPrioirty) {
		this.goalPrioirty = goalPrioirty;
	}

	@Column(name = "retirementCity")
	public String getRetirementCity() {
		return this.retirementCity;
	}

	public void setRetirementCity(String retirementCity) {
		this.retirementCity = retirementCity;
	}

	@Column(name = "retirementState")
	public String getRetirementState() {
		return this.retirementState;
	}

	public void setRetirementState(String retirementState) {
		this.retirementState = retirementState;
	}

}
